# Contributor: Lucas Ramage <ramage.lucas@protonmail.com>
# Maintainer: Lucas Ramage <ramage.lucas@protonmail.com>
pkgname=mustach
pkgver=1.2.2
pkgrel=0
pkgdesc="C implementation of the mustache template specification"
url="https://gitlab.com/jobol/mustach"
arch="all"
license="Apache-2.0"
makedepends="json-c-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://gitlab.com/jobol/mustach/-/archive/$pkgver/mustach-$pkgver.tar.bz2"
restrict="!check" # test1 segfaults

build() {
	make tool=jsonc libs=single
}

package() {
	make -j1 DESTDIR="$pkgdir" PREFIX="/usr" install

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
	install -m644 AUTHORS README.md \
		"$pkgdir"/usr/share/doc/$pkgname/
}
sha512sums="
974e18c2d174cf7a36beb37a7b8c3ffb3ff231b86d3c6978a0a2a40050d1c8f2db2d7976398c12dc3b226a7f571212595ce4d726ccc60e32bf984033be493d13  mustach-1.2.2.tar.bz2
"
